package com.mzj.saas.commons.enums;

/**
 * 收费项目类型
 */
public enum ChargeTypeEnum {

    /**
     * 1-租金
     */
    RENT(1,"租金缴纳"),
    /**
     * 2-押金
     */
    DEPOSIT(2,"押金缴纳"),
    /**
     * 3-电费
     */
    ELECTRIC(3,"电费"),
    /**
     * 4-物业费
     */
    PROPERTY(4,"物业费"),
    /**
     * 5-宽带费
     */
    BROADBAND(5,"宽带费"),
    /**
     * 6-电视费
     */
    TV(6,"电视费"),
    /**
     * 7-煤气费金
     */
    GAS_FEE(7,"燃气费"),
    /**
     * 8-暖气费
     */
    HEATING_BILL(8,"暖气费"),
    /**
     * 9-水费
     */
    WATER(9,"水费"),
    /**
     * 10-租金/押金组合支付
     */
    RENT_DEPOSIT(10,"租金/押金组合支付"),
    /**
     * 12-其它费用组合支付
     */
    OTHER_EXPENSES(12,"其它费用组合支付"),
    /**
     * 13-租金/押金/其他费用组合支付
     */
    RENT_EXPENSES(13,"租金/押金/其他费用组合支付"),
    /**
     * 14-一体机扫码支付
     */
    AIO_SCAN(14,"一体机扫码支付");

    private int value;

    private String text;
    
    ChargeTypeEnum(int value,String text) {
        this.value = value;
        this.text = text;
    }

    public int getValue() {
        return value;
    }
    
	public String getText() {
		return text;
	}

	public static boolean operate(int value) {
        for(ChargeTypeEnum s : values()) { 
            if(s.value == value) {
            	return true;
            }
        }
        return false;
    }
    
	public static String getText(int value) {
        for(ChargeTypeEnum s : values()) { 
            if(s.value == value) {
            	return s.text;
            }
        }
        return "";
    }
}
